package homework.day07.bean;

/**
 * @author ThinkBook
 */
public class Bus extends Automobile{
    private String brand;
    private String plateNumber;
    private int seat;
    private int amount;
    public Bus(String brand,String plateNumber,int seat){
        super(brand,plateNumber,seat);
        this.brand = brand;
        this.plateNumber = plateNumber;
        this.seat = seat;
    }
    @Override
    public int getRent(int day){
        if (this.seat <= 16){
            amount = day*400;
        }else if (this.seat > 16){
            amount = day*600;
        }
        return amount;
    }
}
